#include "dishrequest.h"

DishRequest::DishRequest(QObject *parent)
    : QObject{parent}
{
    this->m_r=new recommend;
    auto f = [&]()
    {
        qDebug()<<"进入f";
        qDebug()<<m_r->rDishList[0].material;
        emit getDishListSuccess();
    };
    connect(m_r,&recommend::rgetDishListSuccess,this,f);
}

void DishRequest::getDishList(QString token)
{
    m_r->GetDishList(token);
}
